#include "App_mqtt.h"
#include "log/log.h"
#include <unistd.h>

int recv_callback(char *json)
{
    log_debug("处理接收的远程消息，消息内容：%s", json);
    return 0;
}
int main(int argc, char const *argv[])
{
    app_mqtt_init();

    app_mqtt_registerRecvCallback(recv_callback);

    app_mqtt_send("{\"conn_type\":1,\"id\":\"XY\",\"msg\":\"abcd\"}");

    sleep(100);
    app_mqtt_close();
    return 0;
}
